package team.pwy.service;

import com.github.pagehelper.PageInfo;
import team.pwy.pojo.dto.OrderDTO;
import team.pwy.pojo.entity.Order;
import team.pwy.pojo.entity.Seat;

import java.util.List;

public interface OrderService {

    PageInfo<Order> findByUserId(Integer userId , Integer pageNum , Integer pageSize);

    Integer addOrder(OrderDTO orderDTO);

    Order findById(Integer id);

    Integer updateById(Integer id,Integer payStatus);

    Integer deleteByIdAndUerId(Integer id,Integer userId);

    Order findByNumber(String number);

    List<Integer> findByOrderId(Integer orderId);

    Integer updateByNum(String number);
}
